const common = {
	constants: require('./common/constants'),
	error: require('./common/error'),
	sensitiveAesCipher: require('./common/sensitive-aes-cipher'),
	universal: require('./common/universal'),
	utils: require('./common/utils'),
	validator: require('./common/validator'),
}

const lang = require('./lang');

const lib = {
	thirdParty: require("./lib/third-party"),
	utils: {
		account: require("./lib/utils/account"),
		captcha: require("./lib/utils/captcha"),
		config: require("./lib/utils/config"),
		fission: require("./lib/utils/fission"),
		login: require("./lib/utils/login"),
		logout: require("./lib/utils/logout"),
		password: require("./lib/utils/password"),
		qq: require("./lib/utils/qq"),
		register: require("./lib/utils/register"),
		relate: require("./lib/utils/relate"),
		sms: require("./lib/utils/sms"),
		unifiedLogin: require("./lib/utils/unified-login"),
		univerify: require("./lib/utils/univerify"),
		updateUserInfo: require("./lib/utils/update-user-info"),
		utils: require("./lib/utils/utils"),
		verifyCode: require("./lib/utils/verify-code"),
		weixin: require("./lib/utils/weixin"),
		alipay: require("./lib/utils/alipay"),
	}
}

const middleware = require('./middleware');

module.exports = {
	common,
	lang,
	lib,
	middleware
}
